<div class="widget widget-tag-cloud">
    <h3 class="widget-title">标签云</h3>
    <ul>
     {% for tag in tag_list %}
         <li>
            <a href="{% url 'tag' tag.id %}">{{ tag.name }} <span class="post-count">({{ tag.num_posts }})</span></a>
         </li>
     {% empty %}
         暂无分类！
     {% endfor %}
    </ul>
</div>